<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<link href="css/displaytag.css" type=text/css rel=stylesheet>

<script type="text/javascript">
	function valida() {
		return confirm("Desea Procesar?");
	}
</script>

</head>
<body>

	<table border="1" style="width: 100%;">
		<tr>
			<td colspan="2"><jsp:include page="pageHeader.jsp" /></td>
		</tr>
		<tr>
			<td width="190"><jsp:include page="menu.jsp" /></td>
			<td>
				<table width="100%" border="3">
					<tr>
						<td><display:table name="${data}" id="bean">
								<display:column title="ID" property="ideaId" />
								<display:column title="TITULO" property="titulo" />
								<display:column title="DESCRIPCION" property="descripcion" />
								<display:column title="PALABRA CLAVE 1" property="palabraClave1" />
								<display:column title="PALABRA CLAVE 2" property="palabraClave2" />
								<display:column title="PALABRA CLAVE 3" property="palabraClave3" />
								<display:column>
									<a
										href="<%=request.getContextPath()%>/idea?ELIMINA&cod=${bean.ideaId}"
										onclick="return valida();"> <img
										src="images/delete.gif" border="0">
									</a>
								</display:column>

								<display:column>
									<a
										href="<%=request.getContextPath()%>/idea?metodo=BUSCA&cod=${bean.ideaId}"
										onclick="return valida();"> <img
										src="images/update.gif" border="0">
									</a>
								</display:column>
							</display:table>
						</td>
					</tr>
					<tr>
						<td><a href="<%= request.getContextPath() %>/jsp/nuevaIdea.jsp">Nueva Idea</a></td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td width="100%" colspan="2"><jsp:include page="footer.jsp" /></td>
		</tr>
	</table>
</body>
</html>